import { getUserInfo } from './userInfo'
/* 根据不同的操作，获取数据库里的题目 */
export const useGetQuestion = async (enterObj, getType) => {
    const { _id } = getUserInfo()
    const res =  await wx.cloud.callFunction({
        name: 'reqQuestionAPI',
        data: {
            scene: 'GET_QUESTION',
            uid: _id,
            getType,
            enterObj
        }
    });
    return res.result.data;
};